package qf.sail.service;

import qf.sail.entity.Order;
import qf.sail.entity.OrderItem;

import java.util.List;

public interface OrderService {

    public long generateOrder(long accountId);

    public long addOrderItem(long goodId, long orderId, String size, String color, int count);

    public int updateOrderMoney(long orderId);

    public Order getOrderById(long id);

    public int updateOrderAddress(String address, long orderId);

    public Order getOrderBySn(String sn);

    public int updateOrderStatus(String status,long orderId);

    //分页显示订单列表
    public List<Order> getOrderList(long accountId, int page);
    //计算某个用户的订单数
    public int getCountById(long accountId);

}
